package com.zhijian.medical.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author HCG
 * @version 1.0
 * @date 2024-10-15
 */
@AllArgsConstructor
@Getter
public enum MeetingNewTypeEnum {


    XJZ(1, "小讲座", "BLK-SOP-027-03"),
    JXBLTL(2, "教学病例讨论", "BLK-SOP-027-04"),
    JXDP(3, "教学读片", "BLK-SOP-027-05"),;

    private Integer code;
    private String desc;
    private String number;

    public static MeetingNewTypeEnum getByCode(Integer code) {
        MeetingNewTypeEnum[] values = MeetingNewTypeEnum.values();
        for (MeetingNewTypeEnum anEnum : values) {
            if (anEnum.getCode().equals(code)) {
                return anEnum;
            }
        }
        return null;
    }
}
